package de.ret_world.eet.view;

import de.ret_world.eet.code.Alphabet;
import java.util.ArrayList;
import java.util.List;
import javax.swing.AbstractListModel;

/**
 *
 * @author Emu
 */
public class HeaderListModel extends AbstractListModel {

    private final Alphabet a;

    public HeaderListModel(Alphabet a) {
        this.a = a;
    }

    @Override
    public int getSize() {
        return a.getNumberOfSymbols();
    }

    @Override
    public Object getElementAt(int index) {
        List lst = new ArrayList(a.getSymbols());
        return lst.get(index);
    }
}
